package com.xcity.pomelo.push.sync;

import com.xcity.pomelo.PomeloRoute;
import com.xcity.pomelo.push.SyncPush;

import naga.x.net.impl.pomelo.PomeloMessage;
import naga.x.net.impl.pomelo.protocol.Message;

/**
 * 一个key-value结构的同步项(key-value)
 * @author yang.li
 *
 */
@PomeloMessage(type = Message.Type.PUSH, route = PomeloRoute.PUSH_SYNC)
public class MapSync extends SyncPush {

	protected Object key;
	protected Object value;
	
	public MapSync(short id, Object key, Object value) {
		super(id);
		this.key = key;
		this.value = value;
	}

	public Object getKey() {
		return key;
	}

	public void setKey(Object key) {
		this.key = key;
	}

	public Object getValue() {
		return value;
	}

	public void setValue(Object value) {
		this.value = value;
	}

}
